﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserDepartmentSlave.aspx.cs" Inherits="WebCommon_UserDepartmentSlave" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>配合部门</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript">
<!--   
    function GetPro(supName)
    {       
        var s='<%=_target %>';
        if(opener.document.getElementById(s) != null)
        {
            window.opener.document.getElementById(s).value = supName;   
            self.close(); 
        }     
        self.close();     
    }          
    -->
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
        </asp:ScriptManager>
        <div>
            <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table border="1" cellpadding="0" cellspacing="0" style="background-color: #dedede; width: 700px; height: 583px;">
                        <tr>
                            <td style="height: 11px; text-align: left;" colspan="3">
                                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                                <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click" Text="查询" />
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 350px; width: 300px; background-color: #ffffff;" valign="top" align="left">
                                <asp:Panel ID="Panel1" runat="server" Height="100%" ScrollBars="Vertical" Width="100%">
                                    <asp:TreeView ID="tvDepartment" runat="server" ShowLines="True" ExpandDepth="1" OnSelectedNodeChanged="tvDepartment_SelectedNodeChanged"
                                        Width="100%" SkinID="treeviewSkin">
                                    </asp:TreeView>
                                </asp:Panel>
                            </td>
                            <td align="center" rowspan="3" valign="top" style="width: 50px; height: 300px;">
                                <br />
                                <br />
                                <br />
                                <br />
                                <br />
                                <br />
                                <br />
                                <br />
                                <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="选择" SkinID="buttonSkin" Visible="False" Width="10px" /><br />
                                <br />
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/btncheck.gif"
                                    OnClick="ImageButton1_Click" /><br />
                                <br />
                                <br />
                                <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/btncancel.gif"
                                    OnClick="ImageButton2_Click" /><br />
                                <br />
                                <asp:Button ID="btnRemove" runat="server" OnClick="btnRemove_Click" Text="移除" SkinID="buttonSkin" Visible="False" Width="10px" /></td>
                            <td align="left" valign="top" style="width: 350px; height: 460px; text-align: center;" rowspan="3">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:ListBox ID="lbxUserNameOK" runat="server" Height="100%" Width="100%" OnSelectedIndexChanged="lbxUserNameOK_SelectedIndexChanged"></asp:ListBox>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="lbxUserNameShow" EventName="SelectedIndexChanged" />
                                    </Triggers>
                                </asp:UpdatePanel>
                                <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/images/up.gif" OnClick="ImageButton3_Click" />
                                &nbsp; &nbsp;&nbsp;&nbsp;
                                <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/images/down.gif"
                                    OnClick="ImageButton4_Click" /></td>
                        </tr>
                        <tr>
                            <td valign="top" style="width: 300px">该部门下的员工</td>
                        </tr>
                        <tr>
                            <td style="width: 300px; height: 100px" valign="top" align="left">
                                <asp:Panel ID="Panel2" runat="server" Height="100%" ScrollBars="Auto" Width="100%">
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <asp:ListBox ID="lbxUserNameShow" runat="server" Height="100%" Width="100%" OnSelectedIndexChanged="lbxUserNameShow_SelectedIndexChanged"
                                                AutoPostBack="True"></asp:ListBox>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="tvDepartment" EventName="SelectedNodeChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="3" style="text-align: center" valign="top">
                                <asp:Button ID="btnOk" runat="server" Text="提交" OnClick="btnOk_Click" SkinID="buttonSkin" />
                                &nbsp; &nbsp; &nbsp;
                                <asp:Button ID="btnReset" runat="server" Text="清空" OnClick="btnReset_Click1" SkinID="buttonSkin" /></td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>
</body>
</html>
